<?php
$res = $_GET['a']+$_GET['b'];
echo json_encode(compact('res'));